package com.huike.web.controller.system;

import com.huike.clues.service.ISysDictService;
import com.huike.common.core.domain.AjaxResult;
import com.huike.common.core.domain.entity.SysDictTypeDTO;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiOperation;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * 字典信息
 */
@RestController
@RequestMapping("/system/dict")
@ApiModel("字典信息")
public class SysDictController {
    @Autowired
    private ISysDictService sysDictService;
    @PostMapping("/type")
    @ApiOperation("新增字典类型")
    public AjaxResult addDictType(SysDictTypeDTO sysDictTypeDTO) {
        sysDictService.addDictType(sysDictTypeDTO);
        return AjaxResult.success();
    }


}
